var req;

function reportGPS(url, cb) {
	if (typeof XMLHttpRequest != "undefined") {
		req = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		req = new ActiveXObject("Microsoft.XMLHTTP");
	}
	req.open("GET", url, true);
	req.onreadystatechange = new function() {
		if (req.readyState == 4) {
			if (req.status == 200) {
				cb();
				alert(req.responseXML);
			}
		}
	};
	req.send(null);
}